/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ez2find.model;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

/**
 *
 * @author Owner
 */

@NamedQueries(value={@NamedQuery(name="listAllResumes", query="SELECT r FROM Resume r"),
                     @NamedQuery(name="lastResumeCode", query="SELECT MAX(r.code) FROM Resume r")})

@Entity
public class Resume extends Post implements Serializable{

    //Permissions
    private boolean directContact;
    private boolean othersContact;

    public boolean isDirectContact() {
        return directContact;
    }

    public void setDirectContact(boolean directContact) {
        this.directContact = directContact;
    }

    public boolean isOthersContact() {
        return othersContact;
    }

    public void setOthersContact(boolean othersContact) {
        this.othersContact = othersContact;
    }
    
}
